package com.example.service;

import com.example.base.BaseCrudDao;
import com.example.base.BaseCrudService;
import com.example.dao.KindDao;
import com.example.entity.Kind;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("KindService")
public class KindService extends BaseCrudService<BaseCrudDao<Kind>, Kind> {

    @Autowired
    KindDao kindDao;

    /**
     * 根据名称查询（完全匹配）
     */
    public Kind selectByName(String kindName){
        return kindDao.selectByName(kindName);
    }


}
